package org.gwt.mosaic.samples.addressbook.client.model;

import org.gwt.mosaic.application.client.AbstractBean;

public class Person extends AbstractBean {
  private String firstName;
  private String lastName;
  private String email;

  public Person() {
    // Nothing to do here!
  }

  public Person(String firstName, String lastName, String email) {
    this.firstName = firstName;
    this.lastName = lastName;
    this.email = email;
  }

  /**
   * @return the firstName
   */
  public String getFirstName() {
    return firstName;
  }

  /**
   * @param firstName the firstName to set
   */
  public void setFirstName(String firstName) {
    String oldValue = this.firstName;
    this.firstName = firstName;
    firePropertyChange("firstName", oldValue, this.firstName);
  }

  /**
   * @return the lastName
   */
  public String getLastName() {
    return lastName;
  }

  /**
   * @param lastName the lastName to set
   */
  public void setLastName(String lastName) {
    String oldValue = this.lastName;
    this.lastName = lastName;
    firePropertyChange("lastName", oldValue, this.lastName);
  }

  /**
   * @return the email
   */
  public String getEmail() {
    return email;
  }

  /**
   * @param email the email to set
   */
  public void setEmail(String email) {
    String oldValue = this.email;
    this.email = email;
    firePropertyChange("email", oldValue, this.email);
  }

}
